package com.bottle.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @author: chenyuncong
 * @Date: 2020/5/11 16:31
 */
//@Data
public class ChatRecordEvent extends ApplicationEvent {

    private String content; //内容
    private Long sendTime; //发送时间
    private Long createTime; //服务里面的创建时间
    private String userId; //发送的用户id
    private String encryptionId; //用户桥梁id

    public ChatRecordEvent(Object source, String content, Long sendTime, Long createTime, String userId, String encryptionId) {
        super(source);
        this.content = content;
        this.sendTime = sendTime;
        this.createTime = createTime;
        this.userId = userId;
        this.encryptionId = encryptionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getSendTime() {
        return sendTime;
    }

    public void setSendTime(Long sendTime) {
        this.sendTime = sendTime;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEncryptionId() {
        return encryptionId;
    }

    public void setEncryptionId(String encryptionId) {
        this.encryptionId = encryptionId;
    }
}
